# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Commodity',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u540d\u79f0')),
                ('price', models.IntegerField(default=0, verbose_name='\u5546\u54c1\u5355\u4ef7')),
                ('preferential', models.CharField(max_length=255, null=True, verbose_name='\u5546\u54c1\u4f18\u60e0')),
                ('img_url', models.CharField(max_length=255, null=True, verbose_name='\u56fe\u7247\u5730\u5740', blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='CommodityClassification',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('classification', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u5206\u7c7b')),
                ('px', models.IntegerField(default=0, verbose_name='\u5206\u7c7b\u6392\u5e8f')),
                ('commodity_classification', models.ForeignKey(verbose_name='\u5546\u54c1\u5206\u7c7b\u4e3b\u952e', to='commodity.CommodityClassification', null=True)),
            ],
        ),
        migrations.CreateModel(
            name='CommodityImg',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('img_url', models.CharField(max_length=255, null=True, verbose_name='\u56fe\u7247\u5730\u5740', blank=True)),
                ('is_active', models.BooleanField(default=True, verbose_name='\u662f\u5426\u5220\u9664')),
                ('commodity', models.ForeignKey(verbose_name='\u5546\u54c1\u4e3b\u952e', to='commodity.Commodity')),
            ],
        ),
        migrations.CreateModel(
            name='CommodityProperty',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('property', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u5c5e\u6027')),
                ('commodity', models.ForeignKey(verbose_name='\u5546\u54c1\u4e3b\u952e', to='commodity.Commodity')),
            ],
        ),
        migrations.CreateModel(
            name='CommodityPropertyValue',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('value', models.CharField(max_length=255, verbose_name='\u5546\u54c1\u5c5e\u6027\u7684\u503c')),
                ('commodity_property', models.ForeignKey(verbose_name='\u5546\u54c1\u5c5e\u6027\u4e3b\u952e', to='commodity.CommodityProperty')),
            ],
        ),
        migrations.AddField(
            model_name='commodity',
            name='commodity_classification',
            field=models.ForeignKey(verbose_name='\u5546\u54c1\u5206\u7c7b\u4e3b\u952e', to='commodity.CommodityClassification'),
        ),
    ]
